<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2018/11/14
 * Time: 10:46
 * name:新增问题专家回答
 * url:/erpSpecialist/add_specialist_answer
 */

$osa_omqid   = $route->bodyParams['osa_omqid'];   //关联问题ID
$osa_content = $route->bodyParams['osa_content']; //回答内容
$osa_osuid   = $route->bodyParams['osa_osuid'];   //回答者ID
$osa_type    = $route->bodyParams['osa_type'];   //类型 0 回答  1 追问

//写入数组
$insertArr = [
    'osa_omqid'         => $osa_omqid,
    'osa_content'       => $osa_content,
    'osa_osuid'          => $osa_osuid,
    'osa_type'          => $osa_type,
    'osa_create_time'  => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_specialist_answer",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );